import request from "@/request/";

//分页
export const getList = (data) => {
  return request({
    url: "/api/mes-equipment-service/assets-mode/page",
    method: "POST",
    data,
  });
};

//详情
export const getDetail = (data) => {
  return request({
    url: "/api/mes-equipment-service/assets-mode/detail",
    method: "POST",
    data,
  });
};

//新增
export const add = (data) => {
  console.log(data);
  return request({
    url: "/api/mes-equipment-service/assets-mode/save",
    method: "POST",
    data,
  });
};

//编辑
export const edit = (data) => {
  return request({
    url: "/api/mes-equipment-service/assets-mode/update",
    method: "POST",
    data,
  });
};

//删除
export const remove = (data) => {
  return request({
    url: "/api/mes-equipment-service/assets-mode/delete",
    method: "POST",
    data,
  });
};

// 导出
export const exportTableData = (data) => {
  return request({
    url: `/api/mes-equipment-service/assets-mode/export`,
    method: "POST",
    responseType: "blob",
    timeout: 300000,
    data: data,
  });
};
